package com.sskj.trafficcontrol.dao;

import com.sskj.trafficcontrol.model.pojo.TcCitys;
import com.sskj.trafficcontrol.model.pojo.TcControlCitys;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author zhao kuo
 * @date 2019-01-29
 */

@Mapper
@Repository
public interface TcControlCitysDAO {
    int deleteByPrimaryKey(Integer id);

    void insertSelective(TcControlCitys record);

    void insertBatch(List<TcControlCitys> records);

    TcControlCitys selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TcControlCitys record);

    int updateByPrimaryKey(TcControlCitys record);

    List<TcControlCitys> getTrafficControlCitys();

    void addCitys(List<TcCitys> list);

    TcCitys findByCityName(@Param("reqCityName") String reqCityName);
}